package edgeEnv

import "gitee.com/fierce_wolf/go-fox-edge-common/commEnv"

var (
	env  *edgeEnv
	Name *name
)

func init() {
	Name = &name{}
	env = &edgeEnv{}
	env.initialize()
}

func GetCPUID() string {
	return env.cpuId
}
func GetARCH() string {
	return env.arch
}

func GetWorkMode() string {
	return env.workMode
}

func GetEnvType() string {
	return env.envType
}

func IsDockerEnv() bool {
	return env.workMode == "docker"
}

func IsDevEnv() bool {
	envDev, ok := commEnv.GetArg("envDev")
	if !ok || envDev != "true" {
		return false
	}

	return true
}

